GBML manual / Text

text_effect_active

True while a text effect is chosen and still playing. An effect whose tracks all pulse once is over after its last frame.

Works differently on Game Boy - Text effects play in a plainer form: Typewriter, Drop in, Pop and Jitter in show the letters on time; Wave, Shake and Sway move a text sideways (sprite text also up and down); Bounce hops sprite text; a Tint does nothing; looks that turn or grow letters leave the text plain.

Works differently on Game Boy Color - Text effects play in a plainer form: letters appear one by one, colors change as made, text shakes or ripples sideways; letters never turn or grow.

Works differently on Sega Genesis - The Sega Genesis plays a text effect its own way. This version plays the Tint track (the words' color mixed toward the effect's color, with the effect's timing) and the Wave and the Shake of the Letters track (each letter its own sprite). It does not play the other Letters looks yet and cannot turn, resize, block or fade words, so the other Letters looks and the Stretch, Blocks, See-through, Scale, Rotate and Flip tracks do not show (the build says which effect has one); use Make a sprite from this effect for those.

On other consoles this differs: see Side by side and How the consoles differ.

Syntax

text_effect_active() -> bool

Returns

bool

Description

Gives back true while a text effect is chosen and still playing. An effect whose tracks all pulse once is over after its last frame.

Example

if (text_effect_active()) {
    x += 1;
}

The walker steps to the right while the effect plays.

See also: Overlay effects - screen effects you make yourselftext_effect_starttext_effect_stop